package com.huilang.dome1;

public interface SellTickets {
    void sell();
}

class TrainStation implements SellTickets{
    @Override
    public void sell() {
        System.out.println("火车站买票");
    }
}


class ProxyPoint implements SellTickets{
    private TrainStation proxy=new TrainStation();

    @Override
    public void sell() {
        System.out.println("代售点收取一些服务费用");
        proxy.sell();

    }
}

